package Model;

import java.io.Serializable;

import Messaging.Notification;
import Messaging.NotificationManager;

/*
 * @author Roch San Buenaventura
 */
public class UtilityOwns2 extends UtilityState implements Serializable 
{

	private static UtilityOwns2 INSTANCE = null;
	final static long serialVersionUID = 231;
	
	protected UtilityOwns2()
	{
	
	}
	
	public static UtilityState Instance()
	{
		if (INSTANCE == null)
		{
			INSTANCE = new UtilityOwns2();
		}
		
		return INSTANCE;
	}
	
	public void landOn(Player player, PropertySpace property) 
	{
		NotificationManager.getInstance().notifyObservers(Notification.UTILITY_RENT, property);
	}
	
	public int getMultiplier()
	{
		return 10;
	}
	
	protected void ownershipIncrease(PropertySpace p) 
	{
		System.err.println("UtiltiyOwns2 ownershipIncrease called - Not supposed to happen");
	}
	
	protected void ownershipDecrease(PropertySpace p) 
	{
		p.changeState(UtilityOwns1.Instance());
	}
	
	protected String getNameAndStatus() 
	{
		return " (2 Owned)";
	}
	
	public String toString() 
	{
		return "UtilityOwns2";
	}

}
